package com.example.demo.data;

import lombok.Data;
import us.codecraft.webmagic.model.annotation.ExtractBy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name="web10086")
//@ExtractBy(value = "/ul/li",source = ExtractBy.Source.RawText)
public class Wap {
	@Id
	private Long id;
	
	@ExtractBy(value = "/ul/li",source = ExtractBy.Source.RawText)
	@Column(name = "name")
    private String name;
	
	@ExtractBy(value = "//*",source = ExtractBy.Source.RawText)
	@Column(name = "phone")
	private String phone;
	
	@ExtractBy("/a/div/h2/text()")
	@Column(name = "text")
	private String text;
	
	
	@ExtractBy("/a/div/p/text()")
	@Column(name = "money")
	private String money;
	
	@ExtractBy("/a/div/span/text()")
	@Column(name = "page")
	private String page;
}
